package demo.android.com.mvpdemo.eventbus;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import demo.android.com.mvpdemo.R;

/**
 * Created by Vya on 2018/2/6 0006.
 */

public class TestEventBusActivity extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test_rxjava_activity);
        EventBus.getDefault().register(this);
        findViewById(R.id.bt_click).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        EventBus.getDefault().post("Test");
    }
}
